package me.qi.kancha.dto.core;

import com.baomidou.mybatisplus.annotation.*;
import me.qi.kancha.dto.base.BaseDTO;
import me.qi.kancha.dto.enums.AdminStatus;

import java.io.Serializable;

import lombok.Data;

/**
 * 
 * @author sun
 * @TableName admin
 */
@TableName(value ="admin")
@Data
public class AdminDTO extends BaseDTO implements Serializable {

    /**
     * 删除标记
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    /**
     * 状态(1正常，2锁定)
     */
    private AdminStatus status;

    /**
     * 账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 分区（多级分区以.连接）
     */
    @TableField(value = "scope")
    private String scope;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}